package com.cls.business.mapper;

import com.cls.business.entity.LeaderProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 主持人研究项目情况表 Mapper
 *
 * @author wandering
 * @date 2020-11-12 15:25:57
 */
@Repository
public interface LeaderProjectMapper extends BaseMapper<LeaderProject> {

    @Select("select * from biz_leader_project where declare_id=#{declareId} and applicant_id=#{applicantId} and is_delete=0")
    List<LeaderProject> findByDeclareIdAndApplicantId(@Param("declareId") Long declareId,@Param("applicantId") Long applicantId);
}
